//package org.sgx.gwtjsutiltest.client;
//
//import org.sgx.jsutil.client.Callback;
//import org.sgx.jsutil.client.JsFunction;
//import org.sgx.jsutil.client.JsUtil;
//import org.sgx.jsutil.client.TestUtil;
//
//import com.google.gwt.core.client.JsArrayMixed;
//
//public class DoingJavascript1 {
//	
//	/**
//	 * An example JavaScript class using a Java JavaScriptObject class. We are exactly a JavaScript function, remember that in JavaScript, a class is represented witha function (constructor)
//	 * @author sg
//	 */
//	public static class Apple extends JsFunction {
//		/**
//		 * needed constructor because we are/extends JavaScriptObject
//		 */
//		protected Apple(){}
//		
//		
//	}
//	public void test(TestUtil test) {
//		/* in all these tests, normal javascript classes using pure function, prototype, 
//		 * new are created using different approaches.This is what we call "doing javascript in java". 
//		 */
//		/**
//		 * an example of using pure JsFunction - non java classes related at all.
//		 */
//		JsFunction Person = JsFunction.create(new Callback() {			
//			@Override
//			public void call(JsArrayMixed args) {
////				JsUtil
//				this.color=args.getString(0); 
//			}
//		}); 
//	}
//}
